import { computed, ref } from 'vue';

export default function useRepositories(){
  const searchQuery = ref('四');
  const respo = ref([{name:'张三'},{name:'张四'},{name:'张五'}]);
  const repositor = computed(()=>{
    return respo.value.filter(item=>{
      return item.name.includes(searchQuery.value);
    });
  });
  return {
    searchQuery,
    repositor
  };
}